package com.gopay.checkorder.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.checkorder.dao.BankReturnMsgForFusedDAO;
import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.domain.bank.bcdl.BisBankReturnMsgForFused;

@Repository(value = "bankReturnMsgForFusedDAO")
public class BankReturnMsgForFusedDAOImpl extends BaseDAOImpl<BisBankReturnMsgForFused, Long> implements BankReturnMsgForFusedDAO {

	@Override
	public List<BisBankReturnMsgForFused> getBankReturnMsg() {
		String hql = "from BisBankReturnMsgForFused";

		List<BisBankReturnMsgForFused> list = this.findByHql(hql);
		return list;
	}
	
	@Override
	public List<BisBankReturnMsgForFused> getBankReturnMsgByCode(String returnCode,String stlmEx){
		String hql = "from BisBankReturnMsgForFused where returnCode= :returnCode and stlmEx= :stlmEx";
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("returnCode", returnCode);
		params.put("stlmEx", stlmEx);
		List<BisBankReturnMsgForFused> list = this.findByHql(hql,params);
		return list;
	}

}
